import request from '@/utils/request'

// 查询工程师信息列表
export function listEngineer(query) {
  return request({
    url: '/user/engineer/list',
    method: 'get',
    params: query
  })
}

// 查询工程师信息详细
export function getEngineer(id) {
  return request({
    url: '/user/engineer/' + id,
    method: 'get'
  })
}

// 修改工程师信息
export function updateEngineer(data) {
  return request({
    url: '/user/engineer',
    method: 'put',
    data: data
  })
}